#!/bin/sh
#protect ssr
#2019/12/30
#kevin

while sleep 120
	do
	wget --spider  www.google.com >/dev/null
	#wget --spider --tries=2 www.google.com
	if [ $? != 0 ];then
	/root/getSSR.sh > dev/null
	/root/setrouterssr.sh > dev/null
	#/root/getSSR.sh
	#/root/setrouterssr.sh
	fi	
	done
